using System;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
using System.Diagnostics;

namespace CodePlex.Resourceful
{
    public static class MonoCompat124
    {


     


        public static bool StartsWith(string self, string value, StringComparison comparisonType)
        {

            string lhs = self;
            string rhs = value;
            if (comparisonType == StringComparison.InvariantCultureIgnoreCase)
            {

                lhs = self.ToLower(CultureInfo.InvariantCulture);
                rhs = value.ToLower(CultureInfo.InvariantCulture);

            }

            if (rhs.Length > lhs.Length)
            {
                return false;
            }
            return lhs.Substring(0, rhs.Length) == rhs;
        }
    }
}
